<!DOCTYPE html>
<head>
<style>
    div {
        -webkit-writing-mode: vertical-rl;
        font-size: 24px;
    }
    span {
        -webkit-text-combine: horizontal;
    }
</style>
</head>

<body>
<div id="div">
  <span>PASS: </span><span id="target">did</span><span> not crash.</span>
</div>

<script>
  var sel = document.getSelection();
  sel.selectAllChildren(document.getElementById('div'));
</script>
</body>
